package freshmanspecial.mredrock.com.welcomefreshman.Presenter;

import android.content.Intent;

import freshmanspecial.mredrock.com.welcomefreshman.View.ITrainView;
import freshmanspecial.mredrock.com.welcomefreshman.View.MainView;
import freshmanspecial.mredrock.com.welcomefreshman.View.TrainView;

/**
 * Created by Administrator on 2017/8/9 0009.
 */

public class TrainPresenter implements ITrainPresenter {
    private ITrainView trainView;
    public TrainPresenter(TrainView trainView){
        this.trainView = trainView;
    }
    @Override
    public void backToMainView() {
        Intent intent = new Intent(trainView.getActivity(), MainView.class);
        trainView.getActivity().startActivity(intent);
        trainView.getActivity().finish();
    }
}
